configremote: Support --json and --json-error-messages
authorJoey Hess <joeyh@joeyh.name>
Wed, 10 May 2023 18:19:32 +0000 (14:19 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 10 May 2023 18:21:42 +0000 (14:21 -0400)
commitde84abb21033cfa59fc3abd3decf9b501ba86bb8
tree821088ac6469ae87d528e033413a1b8c5bda46b1
parenta242eabc7acd8a464157bf3a21c757e85295d8b6
configremote: Support --json and --json-error-messages

Seems unlikely to be too useful, but who knows.

Moved the checkSafeConfig call to happen after an action is started, so
it will be captured by --json-error-messages

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
CHANGELOG
Command/ConfigRemote.hs
doc/todo/--json_for_unannex__and_ideally_any_other_command_.mdwn